package ahu.zdw.com.node;

/**
 * Author: Zhang Dongwei
 * Date: 2021/12/26 21:13
 */
public class MainDemo1_1 {
    public static void main(String[] args) {
//        链表
        MyLinkedList list = new MyLinkedList();
        list.add(10);
        list.add(3);
        list.add(5);
        list.add(9);
        list.add(7);
        list.display();

//        遍历
//        for(Object b:list){
//            System.out.println(b);
//        }
        System.out.println("---------------");
        int[] test = new int[]{10, 3, 5, 9, 7};
        for(int a:test){
            System.out.println(a);
        }
    }

}

